package com.wmx.spring.pojo;

public class Person {
    private String name;

    public Person(){
        System.out.println("Spring容器开始通过无参构造器创建Bean实例------------");
    }
    public Person(String name){
        this.name=name;
        System.out.println("Spring容器开始通过有参构造器创建Bean实例------------");
    }

    public void input()
    {
        System.out.println("欢迎来到我的博客："+name);
    }
}
